//
//  EQinglan.swift
//  EQDudao
//
//  Created by 范伟健 on 2018/5/22.
//  Copyright © 2018年 EQingLan.,Ltd. All rights reserved.
//

import Foundation

public final class EQinglan<Base> {
    public let base : Base
    public init(_ base : Base){
        self.base = base
    }
}

///eq前缀协议 Ps:在扩展的方法和属性前加 public
public protocol EQCompatible {
    /// 扩展协议
    associatedtype EQCompatibleType
    
    /// EQinglan extensions.
    static var eq : EQinglan<EQCompatibleType>.Type { get set }
    
    /// EQinglan extensions.
    var eq : EQinglan<EQCompatibleType> { get  set }
}

public extension EQCompatible {
    public static var eq: EQinglan<Self>.Type {
        get {
            return EQinglan<Self>.self
        }
        set {
            
        }
    }
    
  
    public var eq: EQinglan<Self> {
        get {
            return EQinglan(self)
        }
        set {
            
        }
    }
}



